package cn.gdcp.lkqapp16;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private Button waveSwipe;
    private Button swipeRefresh;
    private Button jellyRefresh;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        waveSwipe = findViewById(R.id.btn1);
        swipeRefresh = findViewById(R.id.btn2);
        jellyRefresh = findViewById(R.id.btn3);


        waveSwipe.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(MainActivity.this,WaveSwipeActivity.class);
                startActivity(intent);
            }
        });

        swipeRefresh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(MainActivity.this,SwipeRefreshActivity.class);
                startActivity(intent);
            }
        });

        jellyRefresh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(MainActivity.this,JellyRefreshActivity.class);
                startActivity(intent);
            }
        });

    }
}
